tar xf ${DOWNLOADDIR}/dbus-1.16.2.tar.xz -C ${BUILDDIR}
pushd ${BUILDDIR}/dbus-1.16.2
	mkdir -p cross-build
	pushd cross-build
		meson --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc --localstatedir=/var \
		      -Dsystemd_system_unitdir=/usr/lib/systemd/system -Dsystemd_user_unitdir=/usr/lib/systemd/user \
		      -Dbuildtype=release \
		      --cross-file ${BUILDDIR}/meson-cross.txt ..
		sed -i "s@gi-docgen \(index\|generate\|gen-index\|gen-deps\|search\|check\|serve\) @& --add-include-path ${SYSDIR}/sysroot/usr/share/gir-1.0/ @g" build.ninja
		ninja
		DESTDIR=${SYSDIR}/sysroot ninja install
		rm -v ${SYSDIR}/sysroot/usr/lib64/libdbus-1.la
		ln -sfv /etc/machine-id ${SYSDIR}/sysroot/var/lib/dbus
	popd
popd
